what is an exception test in selenium